package com.heima.account.service;

import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;

//@LocalTCC
public interface IAccountAction {
    //   @TwoPhaseBusinessAction(name = "deduct", commitMethod = "success", rollbackMethod = "fail")
    public void deduct(@BusinessActionContextParameter(paramName = "userid") Integer userid, @BusinessActionContextParameter(paramName = "money") Integer money);
    public boolean success(BusinessActionContext context);
    public boolean fail(BusinessActionContext context);
}
